package com.financing.wap.dao.impl;

import java.io.Serializable;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.orm.ibatis.SqlMapClientTemplate;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IBaseDao;

@SuppressWarnings("deprecation")
public abstract class BaseDaoImpl<E, PK extends Serializable> implements
		IBaseDao<E, PK> {

	@Resource(name = "sqlMapClientTemplate")
	protected SqlMapClientTemplate sqlMapClientTemplate;
	protected Logger log = LoggerFactory.getLogger(this.getClass());
	
	protected final static SqlName sqlName = new SqlName();

	public SqlMapClientTemplate getSqlMapClientTemplate() {
		return sqlMapClientTemplate;
	}

	public abstract Class<E> getEntityClass();

}
